package net.maku.qdd.convert;

import net.maku.qdd.entity.TransactionEntity;
import net.maku.qdd.vo.TransactionVO;
import net.maku.qdd.vo.TransactionExcelVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 交易记录
 *
 * @author MAKU babamu@126.com
 * <a href="https://maku.net">MAKU</a>
 */
@Mapper
public interface TransactionConvert {
    TransactionConvert INSTANCE = Mappers.getMapper(TransactionConvert.class);

    TransactionEntity convert(TransactionVO vo);

    TransactionVO convert(TransactionEntity entity);

    List<TransactionVO> convertList(List<TransactionEntity> list);

    List<TransactionEntity> convertList2(List<TransactionVO> list);

    TransactionExcelVO convertToExcel(TransactionEntity entity);

    List<TransactionExcelVO> convertExcelList(List<TransactionEntity> list);

    TransactionEntity convertFromExcel(TransactionExcelVO excelVO);

    List<TransactionEntity> convertExcelList2(List<TransactionExcelVO> list);
}